package com.example.service.dao;

import com.example.service.bean.SysMenuBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
/**
 *<描述>
 *@param
 *
 *@return
 *@Author WANG.SONG.
 */
@Mapper
public interface SysMenuBeanMapper {
    int deleteByPrimaryKey(Long menuId);

    int insert(SysMenuBean record);

    int insertSelective(SysMenuBean record);

    SysMenuBean selectByPrimaryKey(Long menuId);

    int updateByPrimaryKeySelective(SysMenuBean record);

    int updateByPrimaryKey(SysMenuBean record);

    List<SysMenuBean> queryByCondition(SysMenuBean record);

    List<SysMenuBean> findByRoleId(Long roleId);

    /**
     * 根据父菜单，查询子菜单
     * @param parentId 父菜单ID
     */
    List<SysMenuBean> queryListParentId(Long parentId);
}